import { App } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/src/index.scss'
// import 'element-plus/theme-chalk/src/dark/css-vars.scss'
import 'element-plus/theme-chalk/dark/css-vars.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

export default {
  install(app: App) {
    app.use(ElementPlus)

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component as any)
    }
  },
}
